package com.xja.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xja.entity.Roles;
import com.xja.mapper.RolesMapper;
import com.xja.service.RolesService;
@Service
public class RolesServiceImpl implements RolesService{

    @Resource
    private RolesMapper rolesMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return rolesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Roles record) {
        return rolesMapper.insert(record);
    }

    @Override
    public int insertSelective(Roles record) {
        return rolesMapper.insertSelective(record);
    }

    @Override
    public Roles selectByPrimaryKey(Integer id) {
        return rolesMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Roles record) {
        return rolesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Roles record) {
        return rolesMapper.updateByPrimaryKey(record);
    }

}
